﻿<Application x:Class="PDFRider.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:PDFRider">
    <Application.Resources>
        
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="LocTable.xaml" />
            </ResourceDictionary.MergedDictionaries>
            
            <!-- This converter is native of WPF! -->
            <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
            
            <Style x:Key="GenericStyle" TargetType="Control">
                <Setter Property="FontFamily" Value="Verdana" />
                <Setter Property="FontSize" Value="12" />
                <Setter Property="Foreground" Value="Black" />
            </Style>
            
            <Style x:Key="MenuStyle" TargetType="Menu" BasedOn="{StaticResource GenericStyle}">
                <Setter Property="Background" Value="Transparent" />
            </Style>
            <Style x:Key="MainMenuItemStyle" TargetType="MenuItem" BasedOn="{StaticResource GenericStyle}">
                <Setter Property="Margin" Value="0,0,5,0" />
            </Style>
            <Style TargetType="MenuItem" BasedOn="{StaticResource GenericStyle}">
                
            </Style>
            
            <Style x:Key="StandardRectangleButton" TargetType="Button">
                <Setter Property="MinWidth" Value="80" />
                <Setter Property="Width" Value="Auto" />
            </Style>
            
            <Style x:Key="StandardRectangleDialogButton" TargetType="Button" 
                   BasedOn="{StaticResource StandardRectangleButton}">
                <Setter Property="Margin" Value="5" />
            </Style>
            
            <Style x:Key="IntervalTextBox" TargetType="{x:Type local:IntervalTextBox}">
                <Setter Property="Width" Value="50" />
                <Setter Property="Margin" Value="5" />
                <Style.Triggers>
                    <Trigger Property="IsValidInterval" Value="False">
                        <Setter Property="Background" Value="#80FF0000" />
                    </Trigger>
                </Style.Triggers>
            </Style>
            
            <Style x:Key="LabelTextBlock" TargetType="TextBlock">
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Margin" Value="5" />
            </Style>
            
            <Style x:Key="InformationTextBlock" TargetType="TextBlock">
                <Setter Property="TextWrapping" Value="WrapWithOverflow" />
                <Setter Property="Margin" Value="5" />
                <Setter Property="Foreground" Value="DarkOrange" />
                <Setter Property="FontStyle" Value="Italic" />
                <Setter Property="VerticalAlignment" Value="Center" />
            </Style>
            
            <Style x:Key="MenuItemImage" TargetType="Image">
                <Setter Property="Width" Value="20" />
                <Setter Property="Height" Value="20" />
            </Style>
            <Style x:Key="SmallImage" TargetType="Image">
                <Setter Property="Width" Value="16" />
                <Setter Property="Height" Value="16" />
            </Style>
            <Style x:Key="BigImage" TargetType="Image">
                <Setter Property="Width" Value="48" />
                <Setter Property="Height" Value="48" />
            </Style>
        
        </ResourceDictionary>
    </Application.Resources>
</Application>
